package com.scalar.chiptrack.finance.costCode.actionCommands;

import com.scalar.chiptrack.commons.Constants;
import com.scalar.chiptrack.actioncommands.ActionCommand;

/**
 * User: KP
 * Date: Aug 03, 2007
 * Time: 2:34:46 PM
 */
public class CostCodeMasterActionCommandFactory implements Constants
{
    private CostCodeMasterActionCommandFactory() {}

    public static ActionCommand getActionCommand( String action )
    {
        if ( ACTION_LOAD.equalsIgnoreCase( action ) || action == null )
        {
            return new CostCodeMasterLoadCommand();
        }
        else if ( ACTION_SAVE.equalsIgnoreCase( action ) )
        {
            return new CostCodeMasterSaveCommand();
        }
        return null;
    }
}
